<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>


                <tr><td class="tt">客户名称</td><td id="name" class="tv"></td><td class="tt">所在地区</td><td id="address" class="tv"></td></tr>
                <tr><td class="tt">客户来源</td><td id="source" class="tv"></td><td class="tt">客户类型</td><td id="type" class="tv"></td></tr>
                <tr><td class="tt">联系人</td><td id="contacts" class="tv"></td><td class="tt">联系电话</td><td id="contacts_tel" class="tv"></td></tr>
                <tr><td class="tt">联系地址</td><td id="contacts_addr" class="tv"></td><td class="tt">客户归属人</td><td id="belong_name" class="tv"></td></tr>
                <tr><td class="tt">客户状态</td><td class="tv" id="state" colspan="3"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>


        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_bid_customer_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data;
                $('#name').text(data.name);
                $('#address').text(data.address);
                $('#source').text(data.source);
                $('#type').text(data.type);
                $('#state').text(data.state);
                $('#contacts').text(data.contacts);
                $('#contacts_tel').text(data.contacts_tel);
                $('#contacts_addr').text(data.contacts_addr);
                $('#belong_name').text(data.belong_name);
                $('#explain').text(data.explain);

                $(".pageshowtitle").text('渠道客户');
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });


        public_get_readsandlog('bid_customer', param_id);
        showpage_dropopt();
    });



</script>
</body>
</html>




